import request from "@/utils/request";
// 评论请求
// 获取
export const getComment = params=>{
    return request({
        method:"GET",
        url:"/v1_0/comments",
        params
    })
}

// 评论点赞
export const addLiked = target=>{
    return request({
        method:"POST",
        url:"/v1_0/comment/likings",
        data:{
            target
        }
    })
}
// 取消点赞评论
export const deleteLiked = target=>{
    return request({
        method:"DELETE",
        url:`/v1_0/comment/likings/${target}`,
        
    })
}
// 发布评论 回复
export const addCommentList = data=>{
    return request({
        method:"POST",
        url:'/v1_0/comments',
        data
        
    })
}